
 
 / /   o r i g i n a l   i n s t r u c t i o n s 
 
 / /   h t t p s : / / s t a c k o v e r f l o w . c o m / q u e s t i o n s / 3 5 0 6 1 7 4 6 / r u n - j a r - f i l e - i n - d o c k e r - i m a g e 
 
 
 
 
 
 / /   b u i l d   t h e   i m a g e   ( o n l y   n e e d s   t o   b e   d o n e   o n c e ) 
 
 d o c k e r   b u i l d   - t   i m a g e N a m e   . 
 
 d o c k e r   b u i l d   - t   r a n / a n o t h e r - q u e s t i o n   . 
 
 
 
 / /   s t a r t   t h e   c o n t a i n e r 
 
 / /   ( i t   m a y   b e   b e s t   t o   j u s t   r e s t a r t   t h e   p r o g r a m   i n s t e a d   s i n c e   t h i s   s e e m s   t o   w a i t   f o r   t h e   p r o g r a m   t o   e x i t ) 
 
 d o c k e r   r u n   - - r e s t a r t   u n l e s s - s t o p p e d   - - n a m e   m y P r o g r a m   i m a g e N a m e 
 
 d o c k e r   r u n   - - r e s t a r t   u n l e s s - s t o p p e d   - - n a m e   a n o t h e r Q u e s t i o n   r a n / a n o t h e r - q u e s t i o n 
 
 
 
 
 
 / /   r e s t a r t   t h e   p r o g r a m 
 
 d o c k e r   r e s t a r t   m y P r o g r a m 
 
 d o c k e r   r e s t a r t   a n o t h e r Q u e s t i o n 
 
 
 
 
 
 / /   i f   t h e   p r o g r a m   c h a n g e s 
 
 / /   r e b u i l t   i t : 
 
 d o c k e r   r m i   i m a g e N a m e 
 
 d o c k e r   b u i l d   - t   i m a g e N a m e   . 